package com.complex.spring.advance.service.impl;

import com.complex.spring.advance.service.ITestA;
import com.complex.spring.advance.service.ITestB;

public class TestBImpl implements ITestB {

    private ITestA testA;

    public TestBImpl(){
    	
    }
    
    public TestBImpl(ITestA testA) {
        this.testA = testA;
    }

    public void print() {
        try {
        	testA.print();
            System.out.println("this is TestB");
        } catch (Exception e) {
            // TODO: handle exception
        }
    }

    public ITestA getTestA() {
        return testA;
    }

    public void setTestA(ITestA testA) {
        this.testA = testA;
    }

}
